package com.xyd.dao;

import com.xyd.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {

    int userReg(User user);

    User userLogin(User user);

    int deleteUser(int[] ids);

    int addUserMap(Map<String, Object> maps);

    int addUserAnno(@Param("name") String name, @Param("pwd") String password, @Param("age") int age);

    List<User> getUserBykeyword(String name);
}
